package com.yjc.drygoods.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yjc.common.utils.PageUtils;
import com.yjc.drygoods.product.entity.AttrAttrgroupRelationEntity;
import com.yjc.drygoods.product.entity.AttrGroupEntity;
import com.yjc.drygoods.product.vo.AttrGroupWithAttrsVo;
import com.yjc.drygoods.product.vo.SkuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author yjc
 * @email yjc19979401754@126.com
 * @date 2022-08-19 21:27:48
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCatelogId(Map<String, Object> params, Long catelogId);

    void deleteRelation(AttrAttrgroupRelationEntity[] entity);

    List<AttrGroupWithAttrsVo> getAttrAttrGroup(Long catelogId);

    List<SkuItemAttrGroupVo> getAttrGroupWithAttrsBySpuIdAndCatelogId(Long spuId, Long catalogId);
}

